package com.bomberman.environment;

import info.gridworld.actor.Actor;
import info.gridworld.actor.Rock;
import info.gridworld.grid.BoundedGrid;
import info.gridworld.grid.Location;

import java.awt.Color;

public class MazeGrid
{
	MazeGrid(BombWorld w)
	{
		String mazeASCII = 
			"9 9"+
		"---------\n"+
		"-*-*-*-*-\n"+
		"---------\n"+
		"-*-*-*-*-\n"+
		"---------\n"+
		"-*-*-*-*-\n"+
		"---------\n"+
		"-*-*-*-*-\n"+
		"---------";
		
		w.setGrid(new BoundedGrid<Actor>(9,9));
		
		for(int i=0; i<w.getGrid().getNumRows(); i++)
		for(int j=0; j<w.getGrid().getNumCols(); j++)
		{
			if(i%2==1 && j%2==1)
			w.add(new Location(i,j), new Rock(Color.LIGHT_GRAY));
		}
		
		w.add(new Location(0,0),w.P1);
		w.add(new Location(8,8),w.P2);
	}
}